package com.tank.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.tank.bean.School;
import com.tank.dao.SchoolDAO;
@Repository("schoolDao")
public class SchoolDaoImpl extends TankDaoSupport implements SchoolDAO {

	@SuppressWarnings("unchecked")
	public List<School> findAll() {
		return this.getHibernateTemplate().find("from School");
	}

	public void save(School s) {
		this.getHibernateTemplate().save(s);
	}

}
